package cn.edu.imau.zy.system.service;

import cn.edu.imau.zy.common.core.entity.system.SysGradeYear;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 年级Service接口
 * 
 * @author wyz
 * @date 2020-06-24
 */
public interface ISysGradeYearService  extends IService<SysGradeYear>
{
    /**
     * 查询年级
     * 
     * @param year 年级ID
     * @return 年级
     */
    public SysGradeYear selectSysGradeYearById(Long year);

    /**
     * 查询年级列表
     * 
     * @param sysGradeYear 年级
     * @return 年级集合
     */
    public List<SysGradeYear> selectSysGradeYearList(SysGradeYear sysGradeYear);

    /**
     * 新增年级
     * 
     * @param sysGradeYear 年级
     * @return 结果
     */
    public int insertSysGradeYear(SysGradeYear sysGradeYear);

    /**
     * 修改年级
     * 
     * @param sysGradeYear 年级
     * @return 结果
     */
    public int updateSysGradeYear(SysGradeYear sysGradeYear);

    /**
     * 批量删除年级
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteSysGradeYearByIds(String ids);

    /**
     * 删除年级信息
     * 
     * @param year 年级ID
     * @return 结果
     */
    public int deleteSysGradeYearById(Long year);
}
